package com.example.admin.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.admin.mapper.ArticleMapper;
import com.example.admin.entity.Article;
import com.example.admin.service.ArticleService;
/**
 * @author: mtl
 * @Date: 2022/1/24 15:46
 * @Description: 
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements ArticleService{

    @Resource
    ArticleMapper articleMapper;
    @Override
    public List<Article> home() {
        return articleMapper.indexToHome();
    }
}
